package com.itboye.mengwu.app.ui.mymeng.personsettings;

import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.TextView;

import com.itboye.core.object.BaseActivity;
import com.itboye.mengwu.R;
import com.itboye.mengwu.app.ui.mymeng.ActivityBindZhifubao;
import com.itboye.mengwu.app.ui.mymeng.ActivityNewPhone;
import com.itboye.mengwu.app.ui.mymeng.ActivityRevisePhone;
import com.itboye.mengwu.app.ui.mymeng.personsettings.ActivityUpdatePwdByPwd;

/****
 * 2016-05-10
 * 
 * @author liutaintian
 * 
 *         账户安全
 * 
 */
public class SaFeActivity extends BaseActivity implements OnClickListener {

	TextView revise_zhifubao, revise_login_pass, revise_phone_num;
	ImageView back;

	@Override
	public int initView() {
		// TODO Auto-generated method stub
		return R.layout.safe_pay;
	}

	@Override
	public void onMyCreate() {
		back.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				finish();
			}
		});
	}

	@Override
	public void onClick(View arg0) {
		Intent intent = null;
		switch (arg0.getId()) {
		case R.id.revise_zhifubao:// 绑定支付宝
			intent = new Intent(this, ActivityBindZhifubao.class);
			break;
		case R.id.revise_login_pass:// 修改登录密码
//			intent = new Intent(this, SaFeCheActivity.class);
			intent = new Intent(this, ActivityUpdatePwdByPhone.class);
			break;
		case R.id.revise_phone_num:// 修改手机号码
			intent = new Intent(this, ActivityNewPhone.class);
			break;
		default:
			break;
		}
		startActivity(intent);
	}

}
